<!--
 * @Author: wangjh wangjiahui0710@163.com
 * @Date: 2024-07-10 09:19:29
 * @LastEditors: wangjh wangjiahui0710@163.com
 * @LastEditTime: 2024-07-11 15:31:30
 * @FilePath: \cip-admin\src\pages\company\information\fire-fighting\components\sheet-item.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!-- 表格内容,此组件还用于生成导出文件,所以不应该依赖vue组件相关的上下文 -->
<script lang="ts" setup>
import { EQP_VALIDITY_MAP } from "@/config/enum-map";

defineOptions({ name: "SheetItem" });
</script>

<template>
	<el-table-column label="序号" width="60" type="index" fixed="left" />
	<el-table-column label="消防设备名称" prop="name" />
	<el-table-column label="型号" prop="eqpType" />
	<el-table-column label="规格" prop="specifications" />
	<el-table-column label="数量" prop="eqpNum" />
	<el-table-column label="位置" prop="eqpPath" />
	<el-table-column label="出厂日期" prop="factoryDate" />
	<el-table-column label="安装日期" prop="installDate" />
	<el-table-column label="供应商" prop="supplier" />
	<el-table-column v-slot="{ row }" label="设备有效性">
		<el-text :text="+row.eqpValidity === 0 ? '#E70000!' : ''">
			{{ EQP_VALIDITY_MAP[row.eqpValidity] }}
		</el-text>
	</el-table-column>
</template>
